/*
 * statisticsview.h
 *
 *  Created on: 15.3.2010
 *      Author: aahv
 */

#ifndef STATISTICSVIEW_H
#define STATISTICSVIEW_H

#include <QFrame>
#include <QStandardItemModel>
#include <QLabel>

#include "BlogView.h"
#include "WPData.h"
#include "wpscrollarea.h"

namespace Ui {
    class StatisticsView;
}

class StatisticsView : public QFrame {
    Q_OBJECT
public:
    StatisticsView(BlogView *parent = 0);
    ~StatisticsView();

    QAction * closeAction() { return iCloseAction; }

public slots:
    void updateStats(const WPDataStats& stats);

protected:
    void focusInEvent(QFocusEvent *event);
    void changeEvent(QEvent *e);

private:
    Ui::StatisticsView *ui;
    BlogView* iParent;
    QAction * iCloseAction;
};

#endif // STATISTICSVIEW_H
